package com.itzz.spring_zhoneHeng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
//开启(权限认证注解)                  作用在类上            作用在方法上
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)

public class SpringNovelApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringNovelApplication.class, args);
    }

}
